package com.cccyy.xml.vo;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
import com.thoughtworks.xstream.annotations.XStreamConverter;
import com.thoughtworks.xstream.converters.extended.ToAttributedValueConverter;

/**
 * @author 作者 Risk;
 * @version 创建时间：2018年7月17日 上午10:41:26
 * 类说明:  xml解析基础类
 */

@XStreamAlias("field")
@XStreamConverter(value = ToAttributedValueConverter.class, strings = {"text"})
//说明该字段解析成值
public class Field {
    //说明该字段解析成属性
    @XStreamAsAttribute
    private String length;
    @XStreamAsAttribute
    private String scale = "0";
    @XStreamAsAttribute
    private String type;

    private String text;


    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getLength() {
        return length;
    }

    public void setLength(String length) {
        this.length = length;
    }

    public String getScale() {
        return scale;
    }

    public void setScale(String scale) {
        this.scale = scale;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

}
